# Contributor: Adrian L Lange <alpine@p3lim.net>
# Contributor: Charles Wimmer <charles@wimmer.net>
# Maintainer: Charles Wimmer <charles@wimmer.net>
pkgname=step-cli
pkgver=0.14.6
pkgrel=0
pkgdesc="Zero trust swiss army knife that integrates with step-ca for automated certificate management"
url="https://github.com/smallstep/cli"
arch="all !s390x !mips !mips64"
license="Apache-2.0"
makedepends="go go-bindata"
source="$pkgname-$pkgver.tar.gz::https://github.com/smallstep/cli/archive/v$pkgver.tar.gz
	common.mk.patch
	"
builddir="$srcdir/cli-$pkgver"

build() {
	make simple
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e85dec9449944bce27eb3753c3807b42f5e5133ce6760044f825d4b1b72cde39824c8e1f6672432221ecab651cddbf9a5c074df4c1d388212e842c26f951b0ae  step-cli-0.14.6.tar.gz
931ed197517551b81a5e3fa417d26693cda95f772c5bddd0842d22c540b5ae24398009ae289d912fd48ffde6f3679d5a446d452942e8cd6496ed54f70cb12fcf  common.mk.patch"
